#Initialize fish_prompt style

function fish_prompt -d "Write out the prompt"
  #printf '%s:%s%s $' (set_color red)(whoami) (set_color blue)(prompt_pwd) (set_color normal)
  set_color --bold red
  printf (whoami)
  printf '@sheimi.se'
  printf ':'
  set_color --bold blue
  printf (basename (prompt_pwd))
  set_color normal
  printf ' $'
end

# Config PATH
set PATH "/home/sheimi/Developer/.bin" $PATH
set PATH "/usr/local/bin" $PATH
set PATH "/usr/local/Cellar/ruby/1.9.3-p194/bin" $PATH
set PATH "/usr/local/share/python3" $PATH
set PATH "/usr/local/share/python" $PATH

# Config LD_LIBRARY_PATH
set -g -x LD_LIBRARY_PATH . $LD_LIBRARY_PATH /usr/local/lib

#Config JAVA
set -g -x JAVA_HOME /usr/lib/jvm/jdk1.6.0_35
set -g -x JAVA_INCLUDE $JAVA_HOME/include
set -g -x JAVA_LIB $JAVA_HOME/lib

#Config Alias
alias cdpyenv 'cd $DEV_FOLDER/env'
alias webenv '. $DEV_FOLDER/env/web/bin/activate.fish'
alias intenv '. $DEV_FOLDER/env/interest/bin/activate.fish'
alias wxenv '. $DEV_FOLDER/env/wx/bin/activate.fish'
alias cdtmp 'cd ~/Developer/repo/tmp'
alias cdrepo 'cd ~/Developer/repo/sheimi'

# HTTP
alias launch_http 'sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist'
alias stop_http 'sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist'

alias lab9 'ssh rizhang@lab9'

#General Shotcut
alias ll 'ls -l'
alias la 'ls -a'
alias lla 'ls -la'
alias .. 'cd ..'
alias ... 'cd ../..'
alias .... 'cd ../../..'

#Config Python
set -g -x DEV_FOLDER $HOME/Developer
set -g -x PYTHONSTARTUP $HOME/.pystartup.py

#Config Hadoop
set DEV_LIB $DEV_FOLDER/lib
alias cdhadoop 'cd $DEV_LIB/hadoop'
alias cdpig 'cd $DEV_LIB/pig'
alias cdhbase 'cd $DEV_LIB/hbase'


